<template>
  <div>
<!-- <img src="https://img2.baidu.com/it/u=3481956968,268171127&fm=26&fmt=auto" alt="">
<p>这是一个孤独可怜的狗狗</p> -->
<!-- <img src="https://img2.baidu.com/it/u=1272594124,1533567082&fm=26&fmt=auto" alt="">
<p>这是一个孤独可怜的狗狗</p> -->
<Dog3 :key="index" :imgUrl="item.dogImgUrl" :dogname="item.dogName"  v-for="(item,index) in arr"  />
</div>
</template>

<script>
import Dog3 from './components/practise/Dog3'
export default {
  data () {
    return {
      arr: [
        {
          dogImgUrl:
            'http://nwzimg.wezhan.cn/contents/sitefiles2029/10146688/images/21129958.jpg',
          dogName: '博美'
        },
        {
          dogImgUrl:
            'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1224576619,1307855467&fm=26&gp=0.jpg',
          dogName: '泰迪'
        },
        {
          dogImgUrl:
            'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2967740259,1518632757&fm=26&gp=0.jpg',
          dogName: '金毛'
        },
        {
          dogImgUrl:
            'https://pic1.zhimg.com/80/v2-7ba4342e6fedb9c5f3726eb0888867da_1440w.jpg?source=1940ef5c',
          dogName: '哈士奇'
        },
        {
          dogImgUrl:
            'https://pic1.zhimg.com/80/v2-7ba4342e6fedb9c5f3726eb0888867da_1440w.jpg?source=1940ef5c',
          dogName: '阿拉斯加'
        },
        {
          dogImgUrl:
            'https://pic1.zhimg.com/80/v2-7ba4342e6fedb9c5f3726eb0888867da_1440w.jpg?source=1940ef5c',
          dogName: '萨摩耶'
        }
      ]
    }
  },

  created () {

  },
  components: {
    Dog3
  },
  methods: {

  }
}
</script>

<style scoped lang='less'>
.dogbox{
  // display: flex;
  float: left;
  width: 200px;
  height: 180px;
  border: 1px solid #333;
  // text-align: center;
}
img{
  width: 100%;
  height: 150px;
}
p{
  text-align: center;
  line-height: 190px;
  font-size: 10px;
}
</style>
